<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>moment.js优秀的日期处理库</title>
</head>
<body>
    <script src="https://cdn.bootcss.com/moment.js/2.24.0/moment.min.js"></script>
    <script>
        const date = moment("1945-5-23 19:33:12");
        // 修改日期格式
        console.log(date.format("YYYY年MM月DD日 HH:mm:ss"));

        // 往后增加十天
        console.log(date.add(10,"days").format("YYYY年MM月DD日 HH:mm:ss"));
    </script>
</body>
</html>